home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs54.d81
/
sgtool14.arc
/
PCX.H
< prev
next >
Wrap
Text File
|
1993-10-04
|
807b
|
44 lines
/*
SG C Tools 1.4
(C) 1993 Steve Goldsmith
All Rights Reserved
Compiled with HI-TECH C 3.09 (CP/M-80).
*/
#define pcxErrNone 0
#define pcxErrFile 1
#define pcxErrHeader 2
#define pcxErrNotPCX 3
#define pcxErrNot2Bit 4
typedef struct
{
uchar Manufacturer;
uchar Version;
uchar Encoding;
uchar BitsPerPixel;
short XMin;
short YMin;
short XMax;
short YMax;
short HRes;
short VRes;
uchar Palette[48];
uchar Reserved;
uchar ColorPlanes;
short BytesPerLine;
short PaletteType;
uchar Filler[58];
} pcxHead;
short initpcx(char *FileName);
void donepcx(void);
void decodelinepcx(ushort X, ushort Y);
void decodefilepcx(ushort X, ushort Y);
void decodelineintpcx(ushort X, ushort Y);
void decodefileintpcx(ushort X, ushort Y);